<?php
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/
defined('_JEXEC') or die('Retricted Access');
rendfield_JS();
JFilterOutput::objectHTMLSafe( $this->item );
JHTML::_('behavior.tooltip');
?>

<script type="text/javascript" language="javascript">
<!--
function submitbutton(pressbutton) {
	var form = document.adminForm;
    if(pressbutton == 'apply' || pressbutton == 'save'){
        // check require
    }
    form.task.value = pressbutton;
    form.submit();
	
}
//-->
</script>
<form name="adminForm" action="index.php" method="post" enctype="multipart/form-data">
    <table width="100%">
		<tr>
		
		<td width="80%" valign="top">
			<div style="width:100%;">
				<?php echo $this->menu();?>
				<br>
				<fieldset>
					<legend><?php echo JText::_('General Details');?></legend>
					<table class="admintable">
			            <?php
						$k=0;
			            for($i = 0, $n = count($this->fieldlist); $i < $n; $i++ )
			            if ($input_field = rendfield($this->item, $this->fieldlist[$i], false, false))
			            {
			                $field = $this->fieldlist[$i];
			                $field_name = $field->field_name;
			                
			                if($field->field_type=='SEPERATOR'){?>	
				                </table>
								</fieldset>   		                
				                <fieldset>
									<legend><?php echo JText::_($field->label);?></legend>
									<table class="admintable">
			               <?php }else{ ?>        
				                <tr class="row<?php echo $k; ?>">
				                    <td class="key" width="20%"><?php  echo JText::_($field->label); ?></td>
				                    <td width="80%">
				                        <?php
				                        echo $input_field;
				                        ?>
				                    </td>
				                </tr>
			                <?php $k = 1-$k;
			            	}
			            }
			            ?>
					</table>
				</fieldset>    
			</div>
		</td>
	</tr>
	</table>
	<input type="hidden" name="cid[]" value="<?php echo $this->item->user_id; ?>" />
	<input type="hidden" name="option" value="<?php echo $this->option; ?>" />
	<input type="hidden" name="view" value="jaemployers" />
	<input type="hidden" name="task" value="" />
	<?php echo JHTML::_( 'form.token' ); ?>	
 </form>
